package com.fanling.venus.project.mapper;


import com.fanling.venus.project.domain.EpointProject;

import java.util.List;

/**
 * 项目信息数据层
 */
public interface EpointProjectMapper {

    /**
     * 项目信息列表
     *
     * @param epointProject
     * @return
     */
    List<EpointProject> selectProjectList(EpointProject epointProject);

    /**
     * 下拉项目信息
     *
     * @return
     */
    List<EpointProject> selectProjectListAll();

    /**
     * 获取项目信息
     *
     * @param projectId
     * @return
     */
    EpointProject selectProjectById(Long projectId);

    /**
     * 新增项目信息
     *
     * @param epointProject
     * @return
     */
    int insertProject(EpointProject epointProject);

    /**
     * 修改项目信息
     *
     * @param epointProject
     * @return
     */
    int updateProject(EpointProject epointProject);

    /**
     * 检查项目名称重复
     *
     * @param projectName
     * @return
     */
    EpointProject checkProjectNameUnique(String projectName);

    /**
     * 删除项目
     *
     * @param projectId
     * @return
     */
    int deleteProjectById(Long projectId);
}
